from django.db import models
from user.models import UserProfile
from django.utils import timezone


# Create your models here.
class Follow(models.Model):
    foid = models.AutoField(primary_key=True)
    fan = models.ForeignKey(UserProfile, on_delete=models.CASCADE, related_name='follow_fan')
    mup = models.ForeignKey(UserProfile, on_delete=models.CASCADE, related_name='follow_mup')
    is_active = models.BooleanField(default=True)
    time = models.DateTimeField(auto_now=True)
    dynamic_last_time = models.DateTimeField(default=timezone.now)